<?php
namespace app\api\validate\user;

class LoginValidate extends \think\Validate
{
    protected $rule = [
        'username'  =>  'require',
        'password'  =>  'require',
    ];
    protected $message  =   [
        'username.require' => '请输入账户',
        'password.require' => '请输入密码',
    ];
}